package org.example.mapping;

import lombok.Getter;
import org.example.config.Configuration;
import org.example.executor.result.ResultMapping;

import java.util.ArrayList;
import java.util.List;

@Getter
public class ResultMap{

    private final String statementId;
    private final Configuration configuration;
    private final Class<?> resultType;
    private List<ResultMapping> resultMappings;

    public <E> ResultMap(Configuration configuration, String id, Class<?> resultType, ArrayList<ResultMapping> resultMappings) {
        this.configuration = configuration;
        this.resultType = resultType;
        this.statementId = id;
        this.resultMappings = resultMappings;
    }
}